//
//  AboutViewController.m
//  GSG
//
//  Created by dllo on 15/5/2.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "AboutViewController.h"

@interface AboutViewController ()

@end

@implementation AboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
    [button setTitle:@"返回" forState:UIControlStateNormal];
    button.frame = CGRectMake(self.view.frame.size.width * 13 / 375, self.view.frame.size.height * 30 / 667, self.view.frame.size.width * 50 / 375, self.view.frame.size.height * 30 / 667);
    [button addTarget:self action:@selector(touch) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
    

//    UIView *aView = [[UIView alloc] initWithFrame:CGRectMake(self.view.frame.size.width * 70 / 375, self.view.frame.size.height * 80 / 667, self.view.frame.size.width * 225 / 375, self.view.frame.size.height * 250 / 667)];
//    aView.contentMode = UIViewContentModeScaleAspectFill;
//    aView.autoresizesSubviews = YES;
//    aView.clipsToBounds = YES;
//    [aView setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"logo.png"]]];
//    aView.layer.borderWidth = 0.1;
//    aView.layer.cornerRadius = 40;
//    [self.view addSubview:aView];
    
    UIButton *newSongButton = [UIButton buttonWithType:UIButtonTypeCustom];
    newSongButton.frame = CGRectMake(self.view.frame.size.width * 70 / 375, self.view.frame.size.height * 80 / 667, self.view.frame.size.width * 225 / 375, self.view.frame.size.height * 250 / 667);
    newSongButton.enabled = NO;
        newSongButton.contentMode = UIViewContentModeScaleAspectFill;
        newSongButton.autoresizesSubviews = YES;
        newSongButton.clipsToBounds = YES;
        newSongButton.layer.borderWidth = 0.1;
        newSongButton.layer.cornerRadius = 40;
    [newSongButton setImage:[UIImage imageNamed:@"logo.png"] forState:UIControlStateNormal];
//    [newSongButton addTarget:self action:@selector(newsong:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:newSongButton];
    
    
    
    
    UILabel * alabel = [[UILabel alloc] initWithFrame:CGRectMake(self.view.frame.size.width * 150 / 375, self.view.frame.size.height * 340 / 667, self.view.frame.size.width * 80 / 375, self.view.frame.size.height * 30 / 667)];
    [alabel setText:@"听~音乐"];
    [alabel setTextColor:[UIColor whiteColor]];
    [self.view addSubview:alabel];
    [alabel release];
    
    UILabel *blabel = [[UILabel alloc] initWithFrame:CGRectMake(self.view.frame.size.width * 35 / 375, self.view.frame.size.height * 370 / 667, self.view.frame.size.width * 320 / 375, self.view.frame.size.height * 30 / 667)];
    [blabel setText:@"很在意你的心情，所以我总是百变"];
    [blabel setTextColor:[UIColor whiteColor]];
    [self.view addSubview:blabel];
    [blabel release];
    
    UILabel *elabel = [[UILabel alloc] initWithFrame:CGRectMake(self.view.frame.size.width * 160 / 375, self.view.frame.size.height * 400 / 667, self.view.frame.size.width * 200 / 375, self.view.frame.size.height * 30 / 667)];
    [elabel setText:@"这里"];
    [elabel setTextColor:[UIColor whiteColor]];
    [self.view addSubview:elabel];
    [elabel release];


    UILabel *dlabel = [[UILabel alloc] initWithFrame:CGRectMake(self.view.frame.size.width * 90 / 375, self.view.frame.size.height * 430 / 667, self.view.frame.size.width * 200 / 375, self.view.frame.size.height * 30 / 667)];
    [dlabel setText:@"多彩的音乐，任你挑选"];
    [dlabel setTextColor:[UIColor whiteColor]];
    [self.view addSubview:dlabel];
    [dlabel release];
    
    UILabel *clabel = [[UILabel alloc] initWithFrame:CGRectMake(self.view.frame.size.width * 25 / 375, self.view.frame.size.height * 560 / 667, self.view.frame.size.width, self.view.frame.size.height * 30 / 667)];
    [clabel setText:@"2015 WaterStone.All Rights Reserved"];
    [clabel setTextColor:[UIColor whiteColor]];
    [self.view addSubview:clabel];
    [clabel release];
    
}
- (void)touch{
    
    [self dismissViewControllerAnimated:YES completion:^{
        
        
    }];
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
